package com.alnex.mongo.config;

import lombok.Data;

import java.io.Serializable;

@Data
public class PageRequestVo implements Serializable {
    /**
     * 当前页
     */
    private Integer current;

    /**
     * 每页数据条数
     */
    private Integer size;


    public int currentPage() {
        return current == null ? 1 : current;
    }

    public int currentSize() {
        return size == null ? 10 : size;
    }
}
